﻿using System.Text;

namespace Utils.NLogHelper;

public class LogFormat
{
    public static string ErrorFormat(LogMessage message)
    {
        var strInfo = new StringBuilder();
        strInfo.Append("操作时间：" + message.OperationTime + "\r\n");
        strInfo.Append("错误内容：" + message.LogInfo + "\r\n");
        strInfo.Append("跟踪：" + message.StackTrace + "\r\n");

        return strInfo.ToString();
    }
}